package com.ruoyi.ihome.mapper;

import java.util.List;
import com.ruoyi.ihome.domain.HomeAndFacility;

/**
 * 房间设施中间表Mapper接口
 * 
 * @author mage
 * @date 2024-08-14
 */
public interface HomeAndFacilityMapper 
{
    /**
     * 查询房间设施中间表
     * 
     * @param id 房间设施中间表主键
     * @return 房间设施中间表
     */
    public HomeAndFacility selectHomeAndFacilityById(Long id);

    /**
     * 查询房间设施中间表列表
     * 
     * @param homeAndFacility 房间设施中间表
     * @return 房间设施中间表集合
     */
    public List<HomeAndFacility> selectHomeAndFacilityList(HomeAndFacility homeAndFacility);

    /**
     * 新增房间设施中间表
     * 
     * @param homeAndFacility 房间设施中间表
     * @return 结果
     */
    public int insertHomeAndFacility(HomeAndFacility homeAndFacility);

    /**
     * 修改房间设施中间表
     * 
     * @param homeAndFacility 房间设施中间表
     * @return 结果
     */
    public int updateHomeAndFacility(HomeAndFacility homeAndFacility);

    /**
     * 删除房间设施中间表
     * 
     * @param id 房间设施中间表主键
     * @return 结果
     */
    public int deleteHomeAndFacilityById(Long id);

    /**
     * 批量删除房间设施中间表
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHomeAndFacilityByIds(Long[] ids);
}
